<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>tp5 select test</title>
</head>
<body>
    <table border="1">
        <tr>
            <th>id</th>
            <th>name</th>
        </tr>
        {foreach name='result' item='res'}
            <tr>
                <td>{$res.id}</td>
                <td>{$res.name}</td>
            </tr>
        {/foreach}
    </table>
</body>
</html>